* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "方正书宋简体", "Microsoft YaHei", "微软雅黑", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.main-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.editor-panel {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    height: fit-content;
}

.preview-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qa-card {
    position: relative;
    background-color: #f9f2e6;
    border-radius: 10px;
    padding: 30px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px dashed #aaa;
    margin: 0;
    width: 100%;
    max-width: 360px; /* 调整宽度 */
    height: 500px; /* 9:16比例 */
    display: flex;
    flex-direction: column;
}

.corner-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
}

.top-left {
    top: 10px;
    left: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23996633"><path d="M12 2L2 7v10l10 5 10-5V7L12 2z"/></svg>');
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff9933"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>');
}

.watermark-text {
    position: absolute;
    color: rgba(0, 0, 0, 0.07);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.top-left {
    top: 20px;
    left: 40px;
}

.top-right {
    top: 20px;
    right: 40px;
}

.bottom-left {
    bottom: 20px;
    left: 40px;
}

.bottom-right {
    bottom: 20px;
    right: 40px;
}

.title-section {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #8b5a2b;
    font-size: 28px;
    margin-bottom: 5px;
}

.title-underline {
    height: 4px;
    background-color: #ffa500;
    width: 80%;
    margin: 0 auto;
    border-radius: 2px;
}

.qa-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
}

.qa-item {
    background-color: #fff3e0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
}

.qa-number {
    background-color: #8b5a2b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.qa-content {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.qa-content strong {
    font-weight: bold;
}

/* 编辑面板样式 */
.editor-panel h2 {
    margin-bottom: 15px;
    color: #333;
}

.edit-section {
    margin-bottom: 15px;
}

.edit-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit-section input,
.edit-section textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-section textarea {
    height: 80px;
    resize: vertical;
}

.color-settings {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.color-settings h3 {
    margin-bottom: 10px;
    color: #333;
}

.color-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-option label {
    flex: 1;
    margin-bottom: 0;
}

.color-option input[type="color"] {
    width: 40px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    background-color: #8b5a2b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

button:hover {
    background-color: #6d4520;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .editor-panel, .preview-container {
        max-width: 100%;
    }
}